<crm-main-nav  nav-c="manage" page-title="人员添加"></crm-main-nav>
<div class="container ng-scope">
  <ol class="breadcrumb">
    <li>CRM系统</li>
    <li>系统管理</li>
    <li class="active">人员添加</li>
  </ol>
</div>
<crm-panel title="添加人员" >
	<div ng-app="controllers" ng-controller="managePeopleAddController">
		<form class="form-horizontal" name="people_form" ng-submit="managePeopleAddForm(people_form.$valid)" novalidate>
			<div class="row">
				<div class="form-group col-sm-4">
					<label class="col-sm-4 control-label">*姓名：</label>
					<div class="col-sm-8" ng-class="{'has-error':!people_form.name.$valid && (!people_form.$pristine || people_form.$submitted)}">
						<input type="text" name="name" placeholder="请输入姓名" ng-model="formData.name" class="form-control" required>
					</div>
				</div>
				<div class="form-group col-sm-4">
					<label class="col-sm-4 control-label">*登录账号：</label>
					<div class="col-sm-8" ng-class="{'has-error':!people_form.account.$valid && (!people_form.$pristine || people_form.$submitted)}">
						<input type="text" name="account" ng-model="formData.account" class="form-control" required placeholder="请输入数字、字母" >
					</div>
				</div>
				<div class="form-group col-sm-4">
					<label class="col-sm-4 control-label">*登录密码：</label>
					<div class="col-sm-8" ng-class="{'has-error':!people_form.password.$valid && (!people_form.$pristine || people_form.$submitted)}">
						<input type="text" name="password" ng-model="formData.password" class="form-control" required placeholder="请输入数字、字母" > 
					</div>
				</div>
				<div class="form-group col-sm-4">
					<label class="col-sm-4 control-label">联系方式：</label>
					<div class="col-sm-8">
						<input type="text" name="phone" ng-model="formData.phone" class="form-control" required placeholder="手机、QQ、微信、邮箱">
					</div>
				</div>
				<div class="form-group col-sm-4">
					<label class="col-sm-4 control-label">分公司：</label>
					<div class="col-sm-8">
						<company-select current-id="formData.company"></company-select>
					</div>
				</div>
				<div class="form-group col-sm-4">
					<label class="col-sm-4 control-label">人员类型：</label>
					<div class="col-sm-8">
						<staff-select current-id="formData.type"></staff-select>
					</div>
				</div>
				<div class="form-group col-sm-4">
					<label class="col-sm-4 control-label">人员职位：</label>
					<div class="col-sm-8">
						<input type="text" class="form-control" placeholder="职位" name="position" ng-model="formData.position">
					</div>
				</div>
			</div>
			<div class="alert alert-warning" role="alert">提示：添加成功才能登录！*必填！</div>
			<div class="form-group">
				<div class="col-sm-offset-1 col-sm-10">
					<button class="btn btn-primary" id="add_business_btn">添加人员</button>
				</div>
			</div>
		</form>
	</div>
</crm-panel>